package com.bsj.travel.def.common.DO;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/***
 * @description ProductCategoryDO
 * @author LiJiaXin
 * @version 1.0.0
 * @time 2024/1/18 20:13
 **/
@Data
@NoArgsConstructor
@TableName(value = "tab_product_category")
public class ProductCategoryDO {

    /**
     * 产品id
     */
    @TableId(value = "productId", type = IdType.AUTO)
    private Long productId;

    /**
     * 品类id
     */
    @TableField("categoryId")
    private Long categoryId;

    /**
     * 创建时间
     */
    @TableField("createTime")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField("updateTime")
    private Date updateTime;

    public ProductCategoryDO(Long productId, Long categoryId) {
        this.productId = productId;
        this.categoryId = categoryId;
    }
}
